<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>安置房分配表</title>
    <style>
        body {
            font-family: SimSun, Arial Unicode MS, Lucida Sans Unicode, Arial, verdana, arial, helvetica, sans-serif;
            margin: 0px;
        }

        .printContent {
            margin: 0px;
            padding: 0px;
            font-size: 18px;
        }

        .printContent p {
            margin: 0px;
            padding: 0px;
            text-align: left;
            line-height: 25px;
            margin-left: 20px;
            font-size: 16px;
        }

        .printContent .printTitle {
            text-indent: 0em;
            font-size: 24px;
            text-align: center;
            font-weight: bold;
            height: 40px;
        }

        .border {
            text-align: center;
            padding-left: 10px;
            padding-right: 10px;
            border-bottom: 1px solid #000000;
        }

        .borderBlock200 {
            text-align: center;
            width: 200px;
            display: inline-block;
            border-bottom: 1px solid #000000;
        }

        .title {
            line-height: 30px;
            font-size: 18px;
            font-weight: bold;
        }

        table {
            margin: auto;
            width: 95%;
            border-collapse: collapse;
            border-top: 2px solid #000000;
            border-left: 2px solid #000000;
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            -fs-table-paginate: paginate;
            border-spacing: 0;

        }

        th, td {
            border-right: 1px solid #000000;
            border-bottom: 1px solid #000000;
            font-size: 16px;
            margin-left: 5px;
            height: 40px;
            page-break-inside: avoid;
            text-align: center;
        }

        @page {
            margin: 10mm 10mm 0mm 10mm;
        }

        .pageBreak {
            page-break-before: always
        }
    </style>
</head>
<body>
<div class="printContent">
    <div class="printTitle">${strUtils.getNotNullText(contract.zsProject.printTableName)}</div>
    <div class="printTitle">安置房分配情况表</div>
    <table class="table">
        <tr>
            <td style="width: 15%">原选房权属人</td>
            <td style="width: 7%">序号</td>
            <td style="width: 20%">安置房户号</td>
            <td style="width: 20%">现安置房所有人</td>
            <td style="width: 12%">关系</td>
            <td style="width: 12%">取得类型</td>
            <td style="width: 14%">备注</td>
        </tr>

        <tr>
            <td rowspan="${size+1}}">${strUtils.getNotNullText(contract.name)}</td>
        </tr>

        <#assign index = 0/>
        <#if houseList??>
            <#list houseList as house>
                <#assign buyHousePersonHouseList = (buyHousePersonHouseMap[house.id?c])!/>

                <#assign index =index+ 1/>
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>${house.houseNumStr}</td>
                    <#if buyHousePersonHouseList??>
                        <#list buyHousePersonHouseList as buyHousePersonHouse>
                            <td>${strUtils.getNotNull(buyHousePersonHouse.name)}<br/></td>
                            <td>${strUtils.getNotNull(buyHousePersonHouse.relation)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonHouse.type)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonHouse.memo)}</td>
                        </#list>
                        <#else/>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </#if>
                </tr>
            </#list>
        </#if>
        <#if storageRoomList??>
            <#list storageRoomList as storageRoom>
                <#assign index =index+ 1/>
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>${storageRoom.houseNumStr}</td>
                    <!--否则循环储物间绑定房源产权人-->
                    <#assign buyHousePersonStorageRoomList = (buyHousePersonStorageRoomMap[storageRoom.id?c])!/>
                    <#if buyHousePersonStorageRoomList?? && (buyHousePersonStorageRoomList?size > 0) >
                        <#list buyHousePersonStorageRoomList as buyHousePersonStorageRoom>
                            <td>${strUtils.getNotNull(buyHousePersonStorageRoom.name)}<br/></td>
                            <td>${strUtils.getNotNull(buyHousePersonStorageRoom.relation)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonStorageRoom.type)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonStorageRoom.memo)}</td>
                        </#list>
                        <#else/>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </#if>
                </tr>
            </#list>
        </#if>
        <#if carLotList??>
            <#list carLotList as carLot>
                <#assign buyHousePersonCarLotList = (buyHousePersonCarLotMap[carLot.id?c])!/>

                <#assign index =index+ 1/>
                <tr>
                    <td>${intUtils.getNotNullStr(index)}</td>
                    <td>${carLot.houseNumStr}</td>

                    <#if buyHousePersonCarLotList??>
                        <#list buyHousePersonCarLotList as buyHousePersonCarLot>
                            <td>${strUtils.getNotNull(buyHousePersonCarLot.name)}<br/></td>
                            <td>${strUtils.getNotNull(buyHousePersonCarLot.relation)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonCarLot.type)}</td>
                            <td>${strUtils.getNotNull(buyHousePersonCarLot.memo)}</td>
                        </#list>
                        <#else/>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </#if>
                </tr>
            </#list>
        </#if>
    </table>
    <p>说明：1.“关系”：指原选房权属人（协议一的权益人）与现安置房所有人之间的关系；</p>
    <p>&#160;&#160;&#160;2.“类型”：指安置房取得的方式，如“析分”、“赠与”、“继承”等；</p>
    <p>&#160;&#160;&#160;3.若原权属人与现安置房所有人一致，“关系”、“类型”两栏不用填写。</p>
</div>
</body>
</html>